package com.example.musicdemo.util

import okhttp3.*

class HttpUtil {
    companion object {
        val sClient by lazy { OkHttpClient() }

        fun getRequest(url: String): Request {
            return Request.Builder()
                .url(url)
                .get()
                .addHeader(
                    "token",
                    "cce3d9f132f1da1cd5c335ed98d3e93a192b548c2aee713328935511c9229eab519e07624a9f0053d78b6050a17a35e705925a4e6992f61d07c385928f88e8de"
                )
                .addHeader(
                    "cookie",
                    "MUSIC_A_T=1634384564287; Max-Age=2147483647; Expires=Wed, 7 Dec 2089 13:57:21 GMT; Path=/eapi/clientlog;;MUSIC_R_T=1634384564644; Max-Age=2147483647; Expires=Wed, 7 Dec 2089 13:57:21 GMT; Path=/api/clientlog;;__csrf=f6732d042976e554b22d2de140c8e53d; Max-Age=1296010; Expires=Sat, 4 Dec 2021 10:43:24 GMT; Path=/;;MUSIC_A_T=1634384564287; Max-Age=2147483647; Expires=Wed, 7 Dec 2089 13:57:21 GMT; Path=/weapi/clientlog;;MUSIC_A_T=1634384564287; Max-Age=2147483647; Expires=Wed, 7 Dec 2089 13:57:21 GMT; Path=/neapi/feedback;;MUSIC_R_T=1634384564644; Max-Age=2147483647; Expires=Wed, 7 Dec 2089 13:57:21 GMT; Path=/weapi/feedback;;MUSIC_R_T=1634384564644; Max-Age=2147483647; Expires=Wed, 7 Dec 2089 13:57:21 GMT; Path=/neapi/feedback;;MUSIC_A_T=1634384564287; Max-Age=2147483647; Expires=Wed, 7 Dec 2089 13:57:21 GMT; Path=/weapi/feedback;;MUSIC_R_T=1634384564644; Max-Age=2147483647; Expires=Wed, 7 Dec 2089 13:57:21 GMT; Path=/weapi/clientlog;;MUSIC_R_T=1634384564644; Max-Age=2147483647; Expires=Wed, 7 Dec 2089 13:57:21 GMT; Path=/neapi/clientlog;;MUSIC_A_T=1634384564287; Max-Age=2147483647; Expires=Wed, 7 Dec 2089 13:57:21 GMT; Path=/eapi/feedback;;MUSIC_A_T=1634384564287; Max-Age=2147483647; Expires=Wed, 7 Dec 2089 13:57:21 GMT; Path=/neapi/clientlog;;MUSIC_A_T=1634384564287; Max-Age=2147483647; Expires=Wed, 7 Dec 2089 13:57:21 GMT; Path=/openapi/clientlog;;MUSIC_A_T=1634384564287; Max-Age=2147483647; Expires=Wed, 7 Dec 2089 13:57:21 GMT; Path=/wapi/clientlog;;MUSIC_U=cce3d9f132f1da1cd5c335ed98d3e93a192b548c2aee713328935511c9229eab519e07624a9f0053d78b6050a17a35e705925a4e6992f61d07c385928f88e8de; Max-Age=1296000; Expires=Sat, 4 Dec 2021 10:43:14 GMT; Path=/;;MUSIC_R_T=1634384564644; Max-Age=2147483647; Expires=Wed, 7 Dec 2089 13:57:21 GMT; Path=/wapi/feedback;;__remember_me=true; Max-Age=1296000; Expires=Sat, 4 Dec 2021 10:43:14 GMT; Path=/;;MUSIC_R_T=1634384564644; Max-Age=2147483647; Expires=Wed, 7 Dec 2089 13:57:21 GMT; Path=/eapi/clientlog;;MUSIC_R_T=1634384564644; Max-Age=2147483647; Expires=Wed, 7 Dec 2089 13:57:21 GMT; Path=/api/feedback;;MUSIC_A_T=1634384564287; Max-Age=2147483647; Expires=Wed, 7 Dec 2089 13:57:21 GMT; Path=/api/feedback;;MUSIC_R_T=1634384564644; Max-Age=2147483647; Expires=Wed, 7 Dec 2089 13:57:21 GMT; Path=/wapi/clientlog;;MUSIC_R_T=1634384564644; Max-Age=2147483647; Expires=Wed, 7 Dec 2089 13:57:21 GMT; Path=/openapi/clientlog;;MUSIC_A_T=1634384564287; Max-Age=2147483647; Expires=Wed, 7 Dec 2089 13:57:21 GMT; Path=/wapi/feedback;;MUSIC_R_T=1634384564644; Max-Age=2147483647; Expires=Wed, 7 Dec 2089 13:57:21 GMT; Path=/eapi/feedback;;MUSIC_A_T=1634384564287; Max-Age=2147483647; Expires=Wed, 7 Dec 2089 13:57:21 GMT; Path=/api/clientlog;"
                )

                .build()
        }


    }


}

